<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/pages/common.jsp" %>
<%@ include file="/common/pages/taglibs.jsp" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="ex" uri="/ex"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=basePath%>/common/js/jquery-ui/themes/smoothness/jquery-ui.css">
<script type="text/javascript" src="<%=basePath%>/common/js/jquery-ui/jquery.ui.js"></script>
<script type="text/javascript" src="<%=basePath%>iccard/js/combocard_audit.js"></script>
<title>combocard list</title>
</head>
<body>
	<input value="<%=basePath%>" id="contextPath" type="hidden"/>
	<div id="combocardset" class="easyui-panel" nofit=true
		style="padding: 2px; border: 1px solid #ddd;" title="${formtitle}套餐卡"
		data-options="iconCls:'icon-bt',collapsible:true">
		<table width="90%" align="left">
			<tr>
				<td>套餐名称：</td>
				<td><c:out value="${comboCard.comboCardName}"/></td>
			</tr>
			<tr>
				<td width="15%">套餐开始时间：</td>
				<td width="35%"><fmt:formatDate value="${comboCard.begintime}" pattern="yyyy-MM-dd"/></td>
				<td width="15%">套餐结束时间：</td>
				<td width="35%"><fmt:formatDate value="${comboCard.endtime}" pattern="yyyy-MM-dd"/></td>
			</tr>
			<tr>
				<td>套餐销售价格：</td>
				<td><c:out value="${comboCard.comboCardSalePrice}"/>元</td>
				<td>节省：</td>
				<td>
					<c:out value="${(comboCard.comboCardOrignalPrice-comboCard.comboCardSalePrice)}"/>元
				</td>
			</tr>
			<tr>
				<td>套餐简介：</td>
				<td><c:out value="${comboCard.comboCardIntro}"/>
				</td>
			</tr>
		</table>
	</div>

	<div id="nrqx" class="easyui-panel" nofit=true
		data-options="title:'商户',iconCls:'icon-bt',collapsible:true,tools:'#tt'">
			<c:forEach items="${comboCard.comboCardProductDetails}" var="list"  varStatus="status"> 
				<table width="90%" align="left">
					<tr>
						<td>活动商户<pp>${status.index+1}</pp>：</td>
						<td>${list.merchant.merchantName}</td>
						<td>商家地址：</td>
						<td>${list.merchant.merchantAddr}</td>
					</tr>
					<tr>
						<td width="15%">涉及商品：</td>
						<td width="35%">${list.productNames}</td>
						<td width="15%">原价格：</td>
						<td width="35%">${list.productOrignalPrice}元</td>
					</tr>
					<tr>
						<td>优惠价格：</td>
						<td>${list.productFavorablePrice}元</td>
						<td>销售价格：</td>
						<td>${list.productSalePrice}元</td>
					</tr>
					<tr>
						<td>销售总份数：</td>
						<td>${list.productCopies}份</td>
						<td>加价百分比：</td>
						<td>${list.productRaisePriceRate}%</td>
					</tr>
				</table>
			</c:forEach>
	</div>
	
	<div id="combocardtol" class="easyui-panel" nofit=true
		style="padding: 2px; border: 1px solid #ddd;" title=""
		data-options="iconCls:'icon-bt',collapsible:true">
		<table width="90%" align="left">
			<tr>
				<td width="15%">原总价格：</td>
				<td width="35%">${comboCard.comboCardOrignalPrice}元</td>
				<td width="15%">原优惠价格：</td>
				<td width="35%">${comboCard.comboCardFavorablePrice}元</td>
			</tr>
			<tr>
				<td>套餐销售价格：</td>
				<td>${comboCard.comboCardSalePrice}元</td>
				<td>套餐加价百分比：</td>
				<td>${comboCard.comboCardRaisePriceRate}%</td>
			</tr>
			<tr>
				<td>可销售总份数：</td>
				<td>${comboCard.comboCardTotalCopies}份</td>
				<td>总折扣：</td>
				<td>${comboCard.totalDiscount}%</td>
			</tr>
		</table>

	</div>
<form id="audit_form" method="post"
action="<%=basePath%>iccard/combocard/${nextaction}"
onsubmit="">
<div id="radio_Card"  class="easyui-panel" style="text-align:left;margin-top:10px" >
<input type="hidden" id="comboCardId" name="comboCardId" value="${comboCard.comboCardId}" />
<table align="left">
	<tr>
		<td width="30%">审核：</td>
		<td width="70%"><input type="radio" name="check" checked="checked" value="1" />通过       
			<input type="radio" name="check" value="2" />不通过
		</td>
	</tr>
	<tr>
		<td>审核意见：</td>
		<td>
		<textarea id="checkContent" name="checkContent" class="easyui-validatebox" data-options="validType:'maxLength[512]'"
								style="height: 60px; width: 300px; font-size: 13px"  maxlength="512"
								name="checkContent"></textarea>
		</td>
	</tr>
</table>
</div>
</form>
<div id="btn_div"
	style="text-align:center;margin-top:10px">
			<a id="saveb" href="#" class="easyui-linkbutton" onclick="audit();">审核</a>
			<a href="#" class="easyui-linkbutton" onclick="back()">返回</a>
</div>
</body>
</html>